'use strict';

module.exports = (sequelize, DataTypes) => {
  var EosAction = sequelize.define('eos_action', {
    uuid: {
      type: DataTypes.STRING,
      primaryKey: true
    },
    trans_id: DataTypes.STRING,
    block_num: DataTypes.INTEGER,
    action_name: DataTypes.STRING,
    action_time: DataTypes.DATE,
    account: DataTypes.STRING,
    account_from: DataTypes.STRING,
    account_to: DataTypes.STRING,
    quantity: DataTypes.STRING,
    memo: DataTypes.STRING,
    sync_time: DataTypes.DATE
  }, { freezeTableName: true, timestamps: false });
  EosAction.associate = function (models) {
    // associations can be defined here
  };
  return EosAction;
};